package com.hsd.whb.enums;

import lombok.Getter;

/**
 * Created by 廖师兄
 * 2017-06-11 18:56
 */
@Getter
public enum ResultEnum {

    SUCCESS(0, "成功"),

    PARAM_ERROR(1, "参数不正确"),

    USERNAME_EXITS(9, "用户名已经存在"),

    MANAGER_ENTERPRISE_CODE_EXITS(10, "企业代码已经存在"),

    MANAGER_ENTERPRISE_ADDRESS_EXITS(11, "企业地址已经存在"),

    USERNAME_PASSWORD_ERROR(12, "用户名或密码错误"),

    WORKNUMBER_EXITS(13, "工号已经存在"),

    NOT_SAME_PASSWORD(14, "密码和确认密码输入不一致"),

    PASSWORD_ERROR(15, "原密码输入错误"),

    PASSWORD_PREPASSWORD_SAME_ERROR(16, "不能和原密码相同"),

    IMAGE_UPLOAD_ERROR(17, "上传头像失败"),

    ACCESS_KEY_EXIST(18, "ACCESSKEY已经存在"),

    DEVICE_EXIST_BINDING(19, "设备已经绑定了管理员"),

    PRITICIPPATE_USERNAME_EXIST(20, "用户名已经存在"),

    PRITICIPPATE_WORKNUMBER_EXIST(21, "工号已经存在"),

    MEETING_NOT_EXIST(22, "会议不存在"),

    MEETING_STATUS_ERROR(23, "会议状态错误"),

    MEETING_NOT_START(24, "会议未开始"),

    UPLOAD_FILE_ERROR(25, "上传文件失败"),

    MEETING_END(25, "会议已结束"),

    DEVICE_NOW_USING(26, "设备已经在使用"),

    DEVICE_NOT_EXIST(27, "设备不存在"),

    DEVICE_NOT_ONLINE(28, "设备不在线"),

    EMAIL_NOT_EXIST(29, "邮箱不存在"),

    PHONE_EXITS(30, "手机号已经存在"),

    EMAIL_EXITS(31, "邮箱已经存在"),

    SERVER_ERROR(500, "服务器错误"),
    ;

    private Integer code;

    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
